import Vue from 'vue'

export default {
  async list (data) {
    return Vue.http.post('./gxActivityRoadBook/getRoadBookList', data)
  },

  // 创建
  async create (data) {
    let params = Object.assign({}, data)
    return Vue.http.post('./gxActivityRoadBook/saveRoadBook', params)
  },

  // 更新
  async update (data) {
    let params = Object.assign({}, data)
    return Vue.http.post('./gxActivityRoadBook/editRoadBook', params)
  },

  // 删除
  async remove (data) {
    return Vue.http.post('./gxActivityRoadBook/delRoadBook', data)
  }
}
